package com.book.controller;

import com.book.items.composite.ProductComposite;
import com.book.service.ProductItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @param
 * @author oyz
 * @version 1.0.4
 * @description: TODO
 * @date 2023/11/12 14:32
 */
@RestController
@RequestMapping("/product")
public class ProductItemController {

    @Autowired
    private ProductItemService service;


    @RequestMapping("/fetchAllItems")
    public ProductComposite fetchAllItems(){
        return service.fetchAllItems();
    }


}
